﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 个人用户的升级信息
    /// 格式: type@=upgrade/uid@=38517721/rid@=434847/gid@=-9999/nn@=13708280616/level@=13/
    /// </summary>
    public class UpgradeMessage : BaseMessage
    {
        public UpgradeMessage(BaseMessage msg) : base(msg)
        {
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int uid {
            get { return GetValue(nameof(uid), 0);  }
        }

        /// <summary>
        /// 房间ID
        /// </summary>
        public int rid
        {
            get { return GetValue(nameof(rid), 0); }
        }

        /// <summary>
        /// 房间分组ID
        /// </summary>
        public int gid
        {
            get { return GetValue(nameof(gid), 0); }
        }
        /// <summary>
        /// 主播昵称(猜测)
        /// </summary>
        public string nn
        {
            get { return GetValue(nameof(nn), ""); }
        }

        /// <summary>
        /// 用户等级
        /// </summary>
        public int level
        {
            get { return GetValue(nameof(level), 0); }
        }

    }

}
